/**
 * 上海中赢金融信息服务有限公司
 * Copyright (c) 2017-2027 Chinazyjr,Inc.All Rights Reserved.
 */

package com.sys.kafka.core.model;

import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kafka.clients.producer.RecordMetadata;

/**
 * <b>ClassName:</b> SendResult.java <br/>
 * <b>Description:</b> 消息发送结果<br/>
 * <b>Date:</b>     2015年10月19日 下午3:41:27<br/> 
 * @author   mobing
 * @version  	 
 */
public class SendResult<K, V>  {

    private final ProducerRecord<K, V> producerRecord;

    private final RecordMetadata recordMetadata;

    public SendResult(ProducerRecord<K, V> producerRecord, RecordMetadata recordMetadata) {
        this.producerRecord = producerRecord;
        this.recordMetadata = recordMetadata;
    }

    public ProducerRecord<K, V> getProducerRecord() {
        return this.producerRecord;
    }

    public RecordMetadata getRecordMetadata() {
        return this.recordMetadata;
    }
    
}

